package com.ungao.framework.proxy;

public class ProxyUtils {

    public static <T extends Object> T cglibProxy(T target) {
        ProxyFactory proxyFactory = new CglibProxy();
        return proxyFactory.getProxy(target);
    }

    public static <R, T extends R> R jkdProxy(Class<R> clazz, T target) {
        ProxyFactory proxyFactory = new JdkProxy();
        return proxyFactory.getProxy(clazz, target);
    }
}
